SObjectCloneMapperglobal virtual with sharing class SObjectCloneMapper the sobjectclonemapper class allows you to define the structure of sobjects that you want to clone. This object can be used by a cloning service to describe the data to be copied. Properties
MethodsSObjectCloneMapperglobal SObjectCloneMapper(Schema.SObjectType sObjectTypeToClone, Set<SObjectCloneMapper.Field> sObjectFieldsToClone) A Default constructor with minimum required properties. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code SObjectCloneMapper.NullFieldValueglobal class NullFieldValue used to represent an explicit null value. when the defaultvalue of a field is set to an instance of this class, the cloned records are created with a null in that field. The cloner should copy values for that field from the template when a default value is not provided. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code SObjectCloneMapper.Fieldglobal class Field each field provides information about a field on the sobject you want to clone. Add instances of this class to SObjectFieldsToClone on pse.SObjectCloneMapper. Properties
MethodsFieldglobal Field(Schema.SObjectField field) A default constructor with minimum required properties. Input Parameters
|